package top.atcra.rpc.discovery.register;

import top.atcra.rpc.service.ServiceConfig;

import java.net.InetSocketAddress;
import java.util.List;

/**
 * @author atcra
 * @date 2025-3-21
 */
public interface ServiceRegistry {
    void register(ServiceConfig serviceDef);

    void register(ServiceConfig serviceDef, int duplicateCount);

    List<InetSocketAddress> lookup(String serviceName, String group);
}
